src = DoubleLinkList.c LinkStack.c LinkQueue.c main.c
test:${src}
	gcc ${src} -o test

libsrc = DoubleLinkList.c
libDArray.so:${libsrc}
	gcc -shared -fPIC ${libsrc} -o libDLlist.so

.PHONY:all clean install

all:test libDLlist.so

clean:
	rm -f test libDLlist.so

install:
	sudo cp libDLlist.so /usr/lib/
	sudo cp DoubleLinkList.h /usr/include/